package com.gui.snake;

import java.awt.*;
import java.util.ArrayList;

public class Snake {
    ArrayList<Point> points; // 获取点
    Direction direction; // 蛇头方向

    public Snake() {
        points = new ArrayList<>();
        points.add(new Point(100, 100));
        points.add(new Point(75, 100));
        points.add(new Point(50, 100));
        direction = Direction.RIGHT;
    }

    public ArrayList<Point> getPoints() {
        return points;
    }

    public void setPoints(ArrayList<Point> points) {
        this.points = points;
    }

    public Direction getDirection() {
        return direction;
    }

    public void setDirection(Direction direction) {
        this.direction = direction;
    }
}
